package siruna.WE.core;

import java.util.HashMap;

import siruna.WE.DeviceDependent.DeviceDependentListener;
import siruna.WE.core.model.FunctionalBlock;

public class Subject {

	DeviceDependentListener dd = null;

	public DeviceDependentListener getDeviceDependentListener() {
		return dd;
	}

	public void setDeviceDependentListener(DeviceDependentListener dd) {
		this.dd = dd;
	}

public void updateWidget (int widgetId){
		
		dd.updateWidget(widgetId);
		
	}

public void updateVisualBlock (int widgetId, String visBlockId){
	
	dd.updateVisualBlock(widgetId, visBlockId);
	
}


public HashMap<String, FunctionalBlock> getDevideFunctionalBlocks(HashMap<String, FunctionalBlock> hm) {
	return dd.getDevideFunctionalBlocks(hm);
}
	
	

}
